package com.zy1.ssmfirst;

import com.zy1.ssmfirst.pojo.User;
import com.zy1.ssmfirst.pojo.project;
import com.zy1.ssmfirst.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SsmfirstApplication {
    @Autowired
    UserService sss;
    public void ddd(){
        System.out.println(sss);
    }
    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(SsmfirstApplication.class, args);
        User bean = run.getBean(User.class);
        System.out.println(bean);
        System.out.println(run.getBean(UserService.class));

        run.close();
    }



}
